package com.lth.web.controller;

import com.lth.service.SayHiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author:刘腾辉
 * @create:2020/9/1 15:23
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    SayHiService sayHiService;

    @RequestMapping("/hi")
    public String sayHi(){
        return sayHiService.say();
    }
}
